.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1890ff;
}

.site-layout-background {
  background: #fff;
  padding: 16px;
  overflow: auto;
}

.layout {
  background: #f0f2f5;
  min-height: calc(100vh - 64px);
  padding: 24px;
}

.app-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.app-header {
  height: 64px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.app-logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--heading-color);
  margin-right: 48px;
  white-space: nowrap;
}

.app-main {
  flex: 1;
  display: flex;
  height: calc(100% - 64px);
  overflow: hidden;
}

/* 侧边栏 */
.sidebar {
  width: 250px;
  height: 100%;
  background-color: #fff;
  border-right: 1px solid var(--border-color-split);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color-split);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* 主内容区 */
.main-content {
  flex: 1;
  height: 100%;
  background-color: var(--background-color-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.canvas-container {
  flex: 1;
  position: relative;
  overflow: auto;
  padding: 16px;
}

.canvas {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 100%;
}

/* 属性面板 */
.property-panel {
  width: 300px;
  height: 100%;
  background-color: #fff;
  border-left: 1px solid var(--border-color-split);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property-panel-header {
  padding: 16px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color-split);
}

.property-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* 组件面板 */
.component-category {
  margin-bottom: 16px;
}

.component-category-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.component-item {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: move;
  transition: all 0.3s;
  background-color: #fff;
}

.component-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.1);
}

.component-item-title {
  font-weight: 500;
}

.component-item-desc {
  font-size: 12px;
  color: var(--text-color-secondary);
}

/* 工具栏 */
.toolbar {
  padding: 8px 16px;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color-split);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  align-items: center;
}

.toolbar-group > * {
  margin-right: 8px;
}

.toolbar-group > *:last-child {
  margin-right: 0;
}

/* 标签页 */
.tabs {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color-split);
}

.tab {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .sidebar, .property-panel {
    width: 200px;
  }
}

@media (max-width: 576px) {
  .app-header {
    padding: 0 12px;
  }
  
  .app-logo {
    margin-right: 24px;
  }
}